projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fffd58f
)
gtk-inspector: size-groups.c: Fix build on pre-C99
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 16 Jul 2014 09:58:20 +0000
(17:58 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 16 Jul 2014 09:58:20 +0000
(17:58 +0800)
Declare variables at the top of the block.
gtk/inspector/size-groups.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/size-groups.c
b/gtk/inspector/size-groups.c
index 8cec9378353649bda7a7b0667353ddd237f7a506..422007c5db14ca5106a535a47781b1a363ffa87c 100644
(file)
--- a/
gtk/inspector/size-groups.c
+++ b/
gtk/inspector/size-groups.c
@@
-270,6
+270,8
@@
void
gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
GObject *object)
{
+ GSList *groups, *l;
+
clear_view (sl);
if (!GTK_IS_WIDGET (object))
@@
-278,8
+280,6
@@
gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
return;
}
- GSList *groups, *l;
-
gtk_widget_show (GTK_WIDGET (sl));
groups = _gtk_widget_get_sizegroups (GTK_WIDGET (object));
for (l = groups; l; l = l->next)